{% extends "../../base.html"%} {% block header_title %}后台管理首页{% end %}{% block body %}
<div class="row">
    <div class="col-xs-1 col-sm-1 col-md-1 sidebar">
        <div class="user">
            <img src="{{static_url('images/ico-user-header.svg')}}">
            <h5>{{current_user['username']}}</h5>
            <a href="/auth/signout"><span class="glyphicon glyphicon-cog"title="用户中心"></span></a>&nbsp;
            <a href="/auth/signout">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
            </a>
        </div>
        <ul class="nav nav-sidebar">
            <li title="首页">
                <a href="/admin">
                    <i class="fa fa-home"></i>
                    <span class="hidden-sm hidden-xs text">首页</span>
                </a>
            </li>
            <li title="数据集">
                <a href="/admin/data">
                    <i class="fa fa-archive"></i>
                    <span class="hidden-sm hidden-xs text">数据集</span>
                </a>
            </li>
            <li title="申请单">
                <a href="/admin/apply">
                    <i class="fa fa-clipboard"></i>
                    <span class="hidden-sm hidden-xs text">申请单</span>
                </a>
            </li>
            <li title="应用表" class="active">
                <a href="/admin/app">
                    <i class="fa fa-cube"></i>
                    <span class="hidden-sm hidden-xs text">应用表</span>
                </a>
            </li>
        </ul>
    </div>
    <div class="col-xs-11 col-xs-offset-1 col-sm-11 col-sm-offset-1 col-md-11 col-md-offset-1 main">
        <div class="page-header">
            <h1>研究细节</h1><small>这里列举的是研究的细节属性<br></small>
        </div>
        {% set dataset = detail.get('dataset')%} {% set reseach = detail.get('reseach')%}
        <section>
            <div class="box">
                <a href="/admin/app" class="btn btn-default">
                    <i class="fa fa-angle-double-left"></i> 返回应用列表</a>&nbsp;
            </div>
            <div class="box">
                <div class="box-body">
                    <div class="box">
                        <div class="box-body">
                            <div class="table-responsive">
                                <h3>研究说明</h3>
                                <table class="table table-bordered table-striped">
                                    <colgroup>
                                        <col class="col-xs-1">
                                        <col class="col-xs-5">
                                        <col class="col-xs-1">
                                        <col class="col-xs-5">
                                    </colgroup>
                                    <!-- 项目的背景 项目的目标 项目的主要研究内容 项目的预期结果 -->
                                    <tbody>
                                        <tr>
                                            <th scope="row">
                                                <code>研究名城</code>
                                            </th>
                                            <td>{{reseach.get('title')}}</td>
                                            <th scope="row">
                                                <code>发起人</code>
                                            </th>
                                            <td>{{reseach.get('initiator')}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>发布时间</code>
                                            </th>
                                            <td>{{detail.get('commenttime')}}</td>
                                            <th scope="row">
                                                <code>说明</code>
                                            </th>
                                            <td></td>
                                        </tr>
                                    </tbody>
                                </table>
                                <table class="table table-bordered table-striped">
                                    <colgroup>
                                        <col class="col-xs-1">
                                        <col class="col-xs-7">
                                    </colgroup>
                                    <!-- 项目的背景 项目的目标 项目的主要研究内容 项目的预期结果 -->
                                    <tbody>
                                        <tr>
                                            <th scope="row">
                                                <code>项目目标</code>
                                            </th>
                                            <td>{{reseach.get('target')}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>项目背景</code>
                                            </th>
                                            <td>{{reseach.get('background')}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>研究内容</code>
                                            </th>
                                            <td>{{reseach.get('content')}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>预期结果</code>
                                            </th>
                                            <td>{{reseach.get('expectation')}}</td>
                                        </tr>
                                    </tbody>
                                </table>

                            </div>
                            <div class="table-responsive">
                                <h3>数据集</h3>
                                <table class="table table-bordered table-striped">
                                    <colgroup>
                                        <col class="col-xs-1">
                                        <col class="col-xs-7">
                                    </colgroup>
                                    <tbody>
                                        <tr>
                                            <th scope="row">
                                                <code>数据名</code>
                                            </th>
                                            <td>{{dataset['title']}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>来源</code>
                                            </th>
                                            <td>{{dataset['from']}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>类型</code>
                                            </th>
                                            <td>{{dataset['dtype']}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>发布时间</code>
                                            </th>
                                            <td>{{dataset['updatetime']}}</td>
                                        </tr>
                                        <tr>
                                            <th scope="row">
                                                <code>说明</code>
                                            </th>
                                            <td>{%raw dataset['note'] %}</td>
                                        </tr>
                                    </tbody>

                                </table>
                                <table class="table table-bordered table-striped">
                                    <colgroup>
                                        <col class="col-xs-1">
                                        <col class="col-xs-1">
                                        <col class="col-xs-6">
                                    </colgroup>
                                    <thead>
                                        <tr>
                                            <th>字段名</th>
                                            <th>字段类型</th>
                                            <th>描述</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {%for arg in dataset['args']%}
                                        <tr>
                                            <th scope="row">
                                                <code>{{arg['title']}}</code>
                                            </th>
                                            <td>{{arg['atype']}}</td>
                                            <td>{{arg['note']}}</td>
                                        </tr>
                                        {%end%}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
</div>
{% end %}
